package com.mf.entity.req.basic;
import java.io.Serial;

import com.mf.groups.GroupsUpdateInterface;
import com.mf.groups.GroupsAddInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;
    import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

/**
 *  接口调用记录提交
 *
 */
@Data
public class ReqApiLog implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
                    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
        @Null(message = "新增id必须为空", groups = {GroupsAddInterface.class})
                                private Integer id;
                                    @Schema(description = "操作描述")
                        private String operation;
                                    @Schema(description = "方法名（类名+方法名）")
                        private String method;
                                    @Schema(description = "请求参数（JSON格式）")
                        private String params;
                                    @Schema(description = "调用者IP")
                        private String ip;
                                    @Schema(description = "执行耗时（毫秒）")
                        private Integer duration;
                                    @Schema(description = "是否发生异常")
                        private Integer hasException;
                                    @Schema(description = "异常信息")
                        private String exceptionMsg;
                                    @Schema(description = "调用者帐号")
                        private String douser;
                                        }
